N = 1 (slider from 1 to 15, step 1)
A = (6.283185307179586, -1.5707963267948966)
B: (0, π / 2)
f = Segment(A, B)
D = (-6.283185307179586, 1.5707963267948966)
C: (0, ((-π)) / 2)
g = Segment(C, D)
h = Sum((1 / n * sin((n * x))), n, 1, N)
p(x) = If[-6.283185307179586 < x < 6.283185307179586, h(x)]